
import {
  SET_BUTTON_PERMISSION_LIST
} from '../constant'

const initState = []

export default function buttonPermissionListReducer(preState = initState, action) {
  const { type, data = [] } = action
  switch (type) {
    case SET_BUTTON_PERMISSION_LIST:
      return [...data]
    default:
      return preState
  }
}
